Skip to content

refactor(ui): QueryaDropdown and QueryaDialogCard off shadcn - #1415

Merged
ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1365-dropdown-dialogcard-off-shadcn
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1365-dropdown-dialogcard-off-shadcn

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1365 (does not close it)

Third migration under the ratchet guard (#1409), next to #1412 and #1413. Two more kit files stop importing package:shadcn_flutter and leave the allow-list in the same change.

File Was Now
querya_dropdown.dart Theme.of(context).colorScheme, ColorScheme in parameters context.queryaTheme.colorScheme, QueryaThemeColorScheme
querya_dialog_card.dart Theme.of(context).colorScheme, Theme.of(context).radiusXxl context.queryaTheme.colorScheme, QueryaControlMetrics.surfaceRadius
  • QueryaThemeColorScheme is a typedef of QueryaTheme.colorScheme's type in querya_theme.dart (which already imports the UI library), so widgets can name the scheme without importing it. When the scheme itself moves to our own type, this one line changes.
  • surfaceRadius = 14 replaces shadcn's radiusXxl, which is 0.58 * 24 * density scale = 13.92 with the app's theme, so the dialog corners are the same to a fraction of a pixel. It is not scaled by uiScale, as before.

Conflicts

The allow-list lines here neighbour those of #1412 and #1413; whichever merges later needs a trivial merge of that file.

Remaining on the allow-list

app_toast (shadcn's toast overlay: needs our own), export_menu_button, and the ones that need a button: querya_action_button, querya_action_menu, querya_empty_state, querya_modal_dialog; plus the widgets.dart barrel.

Not run locally; CI is the check.

…adcn

Add QueryaThemeColorScheme (the type of QueryaTheme.colorScheme) so widgets
can name the scheme without the UI library, and a surface radius token for the
dialog card (14, the value shadcn's radiusXxl gave). Both files leave the
shadcn allow-list. Part of #1365.
@github-actions github-actions Bot added epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions labels Oct 11, 2026
…ueryaThemeScope

Widgets in tests and dialogs can be built under the UI library's theme without
a QueryaThemeScope; context.queryaTheme asserts there. context.colors is the
same scheme the old code read.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit de035ed into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1365-dropdown-dialogcard-off-shadcn branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant